﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ZhiAo.Management;

public partial class ShuiWenJu_UserControl_ChkMenu : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (RoleRight.HasRight("A0012") && RoleRight.HasRight("A0013"))//雨量和水位
            {
                chkMenu.Items.Add(new ListItem("雨量和水位", "A0012"));
            }
            if (RoleRight.HasRight("A0014"))//天气
            {
                chkMenu.Items.Add(new ListItem("天气", "A0014"));
            }
            if (RoleRight.HasRight("A0011"))//氯度
            {
                chkMenu.Items.Add(new ListItem("氯度", "A0011"));
            }
            if (RoleRight.HasRight("A0015"))//蒸发
            {
                chkMenu.Items.Add(new ListItem("蒸发", "A0015"));
            }
        }
    }
}
